var config = [
  {
    label: "商品编码",
    field: "goods_sn",
    type: "input",
    labelWidth: "120px",
    disabled: false,
    placeholder: "请输入文本内容",
    default: "",
    extend: ""
  },
  {
    label:"商品名称",
    field:"goods_name",
    type:"input",
    labelWidth: "120px",
    disabled:false,
    placeholder:"请输入文本内容",
    default: "",
    extend:""
  },
  {
    label:"商品分类",
    field:"group_name",
    type:"select",
    labelWidth: "120px",
    disabled:false,
    placeholder:"请输入文本内容",
    default: "",
    extend:"",
    option:[{
        label:"实物",
        value:1,
    },
    {
        label:"虚拟",
        value:2,
    },
    {
        label:"卡券",
        value:3,
    }],
    group:{
        label:'group_name',
        value:'group_id'
    },
    url:['goods','get_goods_group'],
  },
  {
    label:"商品库存",
    field:"goods_repertory",
    type:"input",
    labelWidth: "120px",
    disabled:false,
    default: "",
    placeholder:"请输入文本内容",
    extend:""
  },
  {
    label:"商品售价",
    field:"goods_price",
    type:"input",
    labelWidth: "120px",
    disabled:false,
    default: "",
    placeholder:"请输入文本内容",
    default: "",
    extend:""
  },
  {
    label:"产品成本",
    field:"goods_cost",
    type:"input",
    labelWidth: "120px",
    disabled:false,
    placeholder:"请输入文本内容",
    default: "",
    extend:""
  },
  {
    label:"商品简介",
    field:"goods_trait",
    type:"textarea",
    labelWidth: "120px",
    disabled:false,
    placeholder:"请输入文本内容",
    default: "",
    extend:""
  },
  {
    label:"产品类型",
    field:"goods_nature",
    type:"radio",
    labelWidth: "120px",
    placeholder:"请输入文本内容",
    default: 1,
    option:[
        {
            label:"实物",
            value:1,
        },
        {
            label:"虚拟",
            value:2,
        },
        {
            label:"卡券",
            value:3,
        }
    ],
    "extend":""
  }, {
    label: "产品上下架",
    type: "radio",
    field: "is_putaway",
    labelWidth: "120px",
    placeholder: "请输入文本内容",
    default: 1,
    option: [{
      label: "上架",
      value: 1
    }, {
      label: "下架",
      value: 2
    }]
  },{
    label:"产品封面",
    field:"goods_cover",
    labelWidth: "120px",
    type:"upload",
    limit:1,
    placeholder:"请输入文本内容",
    default: "",
    extend:""
  },{
    label:"产品轮播图",
    labelWidth: "120px",
    field:"goods_banner",
    type:"upload",
    placeholder:"请输入文本内容",
    default: "",
    limit:3,
    extend:""
  },
  {
    label: "",
    type: "button",
    labelWidth: "120px",
    option: [{
        label: "提交",
        type: "primary",
        action: "submit",
        url: ['goods', 'on_goods_edit'],
        callback:{
            // type:"back",                    // 跳转目标， back返回上一页
            path:"/user/add",             // 跳转到指定页面
        }
      }
    ],
  }
]


export default config;
